package com.gxgeek.entity.mongo;

import com.gxgeek.dto.*;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

/**
 * @author gaoxing
 * @create 2018-06-04 下午4:43
 */
@Data
@Document(collection = "userBasic")
public class UserBasicEntity {
    @Id
    public String id;

    private String userId;
    private Basic basic;
    private Education education;
    private Marriage marriage;
    private Habitancy habitancy;
    private Company company;
    private List<Contact> contacts = new ArrayList<>();
    private List<EmergentContact> emergentContacts = new ArrayList<>();
}
